home *** CD-ROM | disk | FTP | other *** search
- /* SpiralOps.c generated from SpiralOps.psw
- by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989
- */
-
- #include <dpsclient/dpsfriends.h>
- #include <string.h>
-
- #line 1 "SpiralOps.psw"
- /* File: SpiralOps.psw - Random PostScript routines for 'PrimeSpiral'
- *
- * By: Christopher Lane
- * Symbolic Systems Resources Group
- * Knowledge Systems Laboratory
- * Stanford University
- *
- * Date: 9 March 1990
- *
- * Copyright: 1990 by The Leland Stanford Junior University. This program
- * may be distributed without restriction for non-commercial use.
- */
- #line 22 "SpiralOps.c"
- void PSdrawAt(float x, float y)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 5, 44,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 128}, /* rectfill */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- char pad[3];
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = x;
- _dpsP[1].val.realVal = y;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,44);
- if (0) *pad = 0; /* quiets compiler warnings */
- }
- #line 16 "SpiralOps.psw"
-
- #line 57 "SpiralOps.c"
- void PSclearToGray(float gray)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjReal obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 6, 52,
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 33}, /* currentgray */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: gray */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 21}, /* clippath */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66}, /* fill */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- char pad[3];
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[1].val.realVal = gray;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,52);
- if (0) *pad = 0; /* quiets compiler warnings */
- }
- #line 24 "SpiralOps.psw"
-
-